// 环境变量扩展
Object.defineProperties(window, {
  __DEV__: { writable: false, enumerable: false, configurable: false, value: import.meta.env.DEV },
  __PROD__: { writable: false, enumerable: false, configurable: false, value: import.meta.env.PROD },

  __WINDOWS__: { writable: false, enumerable: false, configurable: false, value: proc.platform === "win32" },
  __LINUX__: { writable: false, enumerable: false, configurable: false, value: proc.platform === "linux" },
  __MACOS__: { writable: false, enumerable: false, configurable: false, value: proc.platform === "darwin" },
});

if (typeof ipc === "undefined") {
  Object.defineProperty(window, "ipc", { writable: false, enumerable: false, configurable: false, value: require("electron").ipcRenderer });
}
